import { time13 } from "../common/dateFunction.js"
export default (startTime, endTime) => {
	let data = {
		describe: "距离开始",
		time: 0,
		disabled: true
	}

	if (time13(startTime, "s") - time13(false, "s") > 0) {

		data.describe = "距离开始"
		data.time = (time13(startTime, "s") - time13(false, "s")).toFixed(0)

		return data

	} else if (time13(endTime, 's') - time13(false, "s") > 0) {

		data.describe = "距离结束"
		data.time = (time13(endTime, 's') - time13(false, "s")).toFixed(0)
		data.disabled = false

		return data
	} else {

		data.describe = "已结束"

		return data
	}
}
